const Carousel = require('./../models/carouselModel');
const catchAsync = require('./../utils/catchAsync.js');
const AppError = require('./../utils/appError.js');
const APIFeatures = require('./../utils/apiFeatures.js');
const factory = require('./handlerFactory');
exports.getAllCarousels = factory.getAll(Carousel);

exports.getCarousel = factory.getOne(Carousel);
exports.createCarousel = factory.createOne(Carousel);
exports.updateCarousel = factory.updateOne(Carousel);
exports.deleteCarousel = factory.deleteOne(Carousel);
